package ConfigFile;

import java.io.Serializable;
import java.util.Properties;

import model.general.Location;
import model.general.Util;

public class ConfigFile implements Serializable {
	protected static final long serialVersionUID = -2215190743590612933L;

	private boolean exitData;
	// boat && hook
	private Location location_boat, location_hook, location_light;

	// fish
	private int QUATITY_FISH;
	private int QUATITY_BAD_ITEMS;
	private int QUATITY_GOOD_ITEMS;
	private int QUATITY_SPEED_IIEMS;
	// map
	private int level, score, life;

	private Properties properties = new Properties();

	public ConfigFile() {
	}

	public boolean idExitsData() {
		return exitData;
	}

	public void setExitsData(boolean isSave) {
		this.exitData = isSave;
		if (!exitData) {
			Stores.deleteFile(Util.CONFIG_FILE);
		}
	}

	public String getElementProperties(String key) {
		return properties.getProperty(key);
	}

	public void setElementProperties(String key, String values) {
		properties.setProperty(key, values);
	}

	public Properties getProperties() {
		return properties;
	}

	public void setProperties(Properties properties) {
		this.properties = properties;
	}

	public Location getLocation_boat() {
		return location_boat;
	}

	public void setLocation_boat(Location location_boat) {
		this.location_boat = location_boat;
	}

	public Location getLocation_hook() {
		return location_hook;
	}

	public void setLocation_hook(Location location_hook) {
		this.location_hook = location_hook;
	}

	public Location getLocation_light() {
		return location_light;
	}

	public void setLocation_light(Location location_light) {
		this.location_light = location_light;
	}

	public int getQUATITY_FISH() {
		return QUATITY_FISH;
	}

	public void setQUATITY_FISH(int qUATITY_FISH) {
		QUATITY_FISH = qUATITY_FISH;
	}

	public int getQUATITY_BAD_ITEMS() {
		return QUATITY_BAD_ITEMS;
	}

	public void setQUATITY_BAD_ITEMS(int qUATITY_BAD_ITEMS) {
		QUATITY_BAD_ITEMS = qUATITY_BAD_ITEMS;
	}

	public int getQUATITY_GOOD_ITEMS() {
		return QUATITY_GOOD_ITEMS;
	}

	public void setQUATITY_GOOD_ITEMS(int qUATITY_GOOD_ITEMS) {
		QUATITY_GOOD_ITEMS = qUATITY_GOOD_ITEMS;
	}

	public int getQUATITY_SPEED_IIEMS() {
		return QUATITY_SPEED_IIEMS;
	}

	public void setQUATITY_SPEED_IIEMS(int qUATITY_SPEED_IIEMS) {
		QUATITY_SPEED_IIEMS = qUATITY_SPEED_IIEMS;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}

	public int getScore() {
		return score;
	}

	public void setScore(int score) {
		this.score = score;
	}

	public int getLife() {
		return life;
	}

	public void setLife(int life) {
		this.life = life;
	}

}
